package com.springboot.util;

import com.springboot.entity.Result;

@SuppressWarnings("unchecked")
public class ResultUtil
{
    public Result sussess(Object ob)
    {
        Result result = new Result();
        result.setMessage("SUSSESS");
        result.setResultCode("200");
        result.setData(ob);
        return result;
    }

    public Result error(Object ob)
    {
        Result result = new Result();
        result.setMessage("ERROR");
        result.setResultCode("-1");
        result.setData(ob);
        return result;
    }
}
